package com.xiaoma.test;

import java.io.Serializable;
import java.util.Date;

import com.dexcoder.dal.annotation.Column;
import com.dexcoder.dal.annotation.Table;
import com.dexcoder.dal.annotation.Transient;
@Table(name = "my_doc", pkField = "id", pkColumn = "dog_id")
public class Dog implements Serializable{

    /**
     * 
     */
    private static final long serialVersionUID = -8483087596117675370L;
    private Integer id;
    private String name;
    private String address;
    private transient Integer age;
    private Date bornTime;
    public Integer getId() {
        return id;
    }
    public void setId(Integer id) {
        this.id = id;
    }
    public String getName() {
        return name;
    }
    public void setName(String name) {
        this.name = name;
    }
    @Column(name = "dog_address")
    public String getAddress() {
        return address;
    }
    public void setAddress(String address) {
        this.address = address;
    }
    @Column(name = "d_age")
    public Integer getAge() {
        return age;
    }
    public void setAge(Integer age) {
        this.age = age;
    }
    @Transient
    public Date getBornTime() {
        return bornTime;
    }
    public void setBornTime(Date bornTime) {
        this.bornTime = bornTime;
    }
}
